build: Don't use any -Werror in release builds
authorBenjamin Otte <otte@redhat.com>
Wed, 10 Nov 2021 19:01:36 +0000 (20:01 +0100)
committerBenjamin Otte <otte@redhat.com>
Wed, 10 Nov 2021 19:04:07 +0000 (20:04 +0100)
commit362e91c40b5036ec0ac0a5a0c231a4b58414509f
tree9cfea0e544cbf71ab9956a700d111c691b28993e
parent46f8600b6a92f63fc34babff1b78d41b3b8301db
build: Don't use any -Werror in release builds

Do kep them for debug and debugoptimized builds though.

Keeping -Werror flags in release builds causes issues with forward
compatibility, when new compiler releases or different toolchains
suddenly cause those warnings to be emitted during compilation.

While we certainly want those issues to be investigated and fixed, they
should not prevent anyone from building GTK until they are.

Resolves #4388
meson.build